package com.web.server.common.exception;

/**
 * Created by ZHANGXIANLIANG1 on 2016/3/2.
 */
public class CrmException extends RuntimeException {

    protected int code = StatusCode.STATUS_SUCCESS;

    public CrmException() {
    }

    public CrmException(int code) {
        this.code = code;
    }

    public CrmException(String message) {
        super(message);
    }

    public CrmException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
